/**
 *OutputHandler.java
 *@anthor Daniel Liu
 *2006-4-26 3:36:48
 **/
package org.lex.utils.logging;

import java.util.logging.LogRecord;
import java.util.logging.StreamHandler;

import org.lex.utils.Streamable;


public class OutputableHandler extends StreamHandler {
	public OutputableHandler(final Streamable output) {
		super();
		this.setOutputStream(output.getOutputStream());
	}

	public synchronized void publish(LogRecord record) {
		super.publish(record);
		super.flush();
	}
}
